<?php

class ml_tool_collectionOutput
{
    
    static public function parseColTpl($col_data)
    {
        

        foreach ($col_data as $data)
        {
            
            $data['time'] = ml_tool_standardShow::time($data['ctime']);
            $data['name'] =  Tool_string::un_html($data['name']);
            $data['col_info']=empty($data['col_info'])?array():unserialize($data['col_info']);
            
            foreach ($data['col_info'] as $value) {
                $data['pic'][]=ml_tool_picid::pid2url($value,ML_USER_PICSIZE_COLLECTION,ML_PICTYPE_CONTENT);//格式待定
            }
            $controller = ml_factory::get_controller();
            $data['visitor'] = $controller->get_visitor();//用来判断ifme（删除、编辑）
            
            $aHtml[] = ml_tool_template::parseModTpl($data , '622');
        } 
       
        
        return $aHtml;
    }
    
}